package gazzera.node.core.messages;

import java.io.*;

public class ChunkData extends Message
{
	public byte[] data;

	public ChunkData()
	{
		super();
	}

	public ChunkData(byte[] data)
	{
		super();
		this.data = data;
	}

	@Override
	protected void recv(DataInputStream s) throws IOException
	{
		data = readBuffer(s);
	}

	@Override
	protected void send(DataOutputStream s) throws IOException
	{
		sendBuffer(s, data);
	}

}
